package com.gopay.common.domain.bank.bcdl;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * 银行定时熔断
 *
 * @author hougn
 * @date 2018-02-01
 */
@Entity
@Table(name = "BIS_ONE_FEN_TEST_ORDER")
public class BisOneFenTestOrder implements Serializable {

	/**
	 * 主键
	 */
	private Long sq;
	/**
	 * 熔断器编号
	 */
	private String sentinelCode;

	/**
	 * 国付宝交易号
	 */
	private String gopayOrderId;

	/**
	 * 创建时间
	 */
	private Date createdTs;

	/**
	 * 最后更新时间
	 */
	private Date lastUpdTs;


	@Id
	@Column(name = "sq")
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "BIS_ONE_FEN_TEST_SEQ")
	@SequenceGenerator(name = "BIS_ONE_FEN_TEST_SEQ", allocationSize = 1, initialValue = 1, sequenceName = "BIS_ONE_FEN_TEST_SEQ")
	public Long getSq() {
		return sq;
	}

	public void setSq(Long sq) {
		this.sq = sq;
	}

	@Column(name = "sentinel_code")
	public String getSentinelCode() {
		return sentinelCode;
	}

	public void setSentinelCode(String sentinelCode) {
		this.sentinelCode = sentinelCode;
	}

	@Column(name = "gopay_order_id")
	public String getGopayOrderId() {
		return gopayOrderId;
	}

	public void setGopayOrderId(String gopayOrderId) {
		this.gopayOrderId = gopayOrderId;
	}

	@Column(name = "created_ts")
	public Date getCreatedTs() {
		return createdTs;
	}

	public void setCreatedTs(Date createdTs) {
		this.createdTs = createdTs;
	}

	@Column(name = "last_upd_ts")
	public Date getLastUpdTs() {
		return lastUpdTs;
	}

	public void setLastUpdTs(Date lastUpdTs) {
		this.lastUpdTs = lastUpdTs;
	}
}
